package org.sardine.util;

public class Assert {
	
	public static void notNull(Object object, String message) {
		if (object == null) {
			throw new IllegalArgumentException(message);
		}
	}
	
	public static void notEmpty(String text,String message){
		notNull(text,message);
		if(text.length()==0){
			throw new IllegalArgumentException(message);
		}
	}

}
